package com.aaa.springboot.service.impl;

import com.aaa.springboot.dao.PulishDao;
import com.aaa.springboot.pojo.Pulish;
import com.aaa.springboot.service.PulishService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;

@Service
@Transactional
public class PulishServiceImpl implements PulishService {

    @Autowired
    private PulishDao pulishDao;

    @Override
    public int deleteByPrimaryKey(Integer pubid) {
        return pulishDao.deleteByPrimaryKey(pubid);
    }

    @Override
    public int insert(Pulish record) {
        return pulishDao.insert(record);
    }

    @Override
    public int insertSelective(Pulish record) {
        return pulishDao.insertSelective(record);
    }

    @Override
    public Pulish selectByPrimaryKey(Integer pubid) {
        return pulishDao.selectByPrimaryKey(pubid);
    }

    @Override
    public int updateByPrimaryKeySelective(Pulish record) {
        return pulishDao.updateByPrimaryKeySelective(record);
    }

    @Override
    public int updateByPrimaryKey(Pulish record) {
        return pulishDao.updateByPrimaryKey(record);
    }

    @Override
    public List<Pulish> selectAll() {
        return pulishDao.selectAll();
    }
}
